# Maintainer: Ali H. Caliskan <ali.h.caliskan@gmail.com>

pkgname=ntorrent
pkgver=0.5
pkgrel=2
pkgdesc="A graphical user interface client to rtorrent written in java."
arch=('i686' 'x86_64')
url="http://code.google.com/p/ntorrent"
license=('GPL3')
depends=('rtorrent' 'java-runtime')
source=("http://ntorrent.googlecode.com/files/nTorrent-bin-$pkgver.tar.bz2"
	'ntorrent.sh')
md5sums=('ae067f0c69a1b2410d8a9aa646124ec8'
         '355c948db97bafdf19c01b574c21dbe7')

build() {
	cd $srcdir
	install -d $pkgdir/usr/share/{java/,}$pkgname
	install -m644 lib/* $pkgdir/usr/share/java/$pkgname
	cp -r plugins boot.properties  $pkgdir/usr/share/$pkgname
	install -D -m755 ntorrent.sh $pkgdir/usr/bin/ntorrent
}
